package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 日志实体类
 * @author Zchaolin
 * @version 1.0
 * @created 29-7月-2022 9:34:36
 */
@TableName("t_journal")
public class JournalBean {

	/**
	 * 编号
	 */
	@TableId(value = "pk_journalId",type = IdType.AUTO)
	private Integer id;
	/**
	 * 登陆时间
	 */
	@TableField("j_date")
	private LocalDate loginDate = LocalDate.now();
	/**
	 * 内容
	 */
	@TableField("j_content")
	private String content;

	public JournalBean(){

	}

	public JournalBean(String content) {
		this.content = content;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public LocalDate getLoginDate() {
		return loginDate;
	}

	public void setLoginDate(LocalDate loginDate) {
		this.loginDate = loginDate;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String toString() {
		return "JournalBean{" +
				"id=" + id +
				", loginDate=" + loginDate +
				", content='" + content + '\'' +
				'}'+"\n";
	}
}